package com.example.justbuy.mapper;

import com.example.justbuy.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Mapper
@Repository
public interface UserDao {
    List<User> getAll();

    int insertUser(HashMap map);

    List<User> getByPhone(String phone);

    User validateUser(HashMap map);

    /**
     * 专用来查询后台登录的
     * @param map
     * @return
     */
    User validateUser1(HashMap map);

    int uadateUser(HashMap map);

    /*根据userid 获取对应的信息*/
    User getTheInfoUser(int id);
}
